package org.nobject.common.text;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class DecodeUtils {
	
	/** UnicodeToString */
	public static String UnicodeToString(String str) {
        Pattern pattern = Pattern.compile("(\\\\u([0-9a-zA-Z]{4}))");    
        Matcher matcher = pattern.matcher(str);
        char ch;
        while (matcher.find()) {
            ch = (char) Integer.parseInt(matcher.group(2), 16);
            str = str.replace(matcher.group(1), ch + "");    
        }
        return str;
    }
	
	public static void main(String[] args) {
		System.err.println(UnicodeToString("09\\u60C5\\u4EBA\\u8282\\u9650\\u91CF\\u7248"));
	}
}
